package com.dc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dc.common.ResponseResultVO;
import com.dc.entity.ro.DeviceRO;
import com.dc.model.Device;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

public interface DeviceService extends IService<Device> {
    ResponseResultVO insertDevice(DeviceRO ro);

    ResponseResultVO updateDevice(DeviceRO ro);

    ResponseResultVO replaceDevice(DeviceRO ro);

    ResponseResultVO deleteDevice(String id);

    ResponseResultVO selectDeviceByPage(DeviceRO ro);

    void deviceRecordExport(HttpServletResponse response, DeviceRO ro);

    void exportDeviceRecordModel(HttpServletResponse response);

    ResponseResultVO importDeviceRecord(MultipartFile file);

    ResponseResultVO fileContentReading(MultipartFile file);

    ResponseResultVO getDeviceType();

    ResponseResultVO getDeviceInfo(int page);

    ResponseResultVO getGetVideoRealtime(String deviceCode);

    ResponseResultVO getDeviceHistory(String deviceCode, String startTime, String endTime);
}

